/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MidiGui;

import javax.swing.*;
import java.awt.*;
import music.*;

/**
 *
 * @author TJ
 */
public class StaffPanel extends JPanel{
    private Score s;
    public StaffPanel() {init();}
    public void paintComponent(Graphics g) {
        g.clearRect(0, 0, getWidth(), getHeight());
        s.render(g);
    }
    private void init() {
        s=new Score(1);
        Staff s2=new Staff(s);
        s.addStaff(s2);
    }
    public Score getScore() {return s;}
    public Staff getStaff(int i) {return s.getStaff(i);}
}
